<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="Info.TaocanI"%>
<%@page import="java.util.List"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看套餐</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
	<div id="wrap">
		<div id="top_content">
			<div id="header">
				<div id="rightheader">
					<p>
						<%
							Date d = new Date();
							SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
						%>
						<%=sdf.format(d)%>
						<br />
					</p>
				</div>
				<div id="topheader">
					<h1 id="title">
						<a href="#">体检套餐管理</a>
					</h1>
				</div>
				<div id="navigation"></div>
			</div>
			<div id="content">
				<p id="whereami"></p>
				<div class="head-l">
			    <a class="button button-little bg-blue" href="InsertTaocan.jsp"><span
				class="icon-power-off"></span><h3>添加体检套餐</h3></a><br>
		        </div>
				<h1>Welcome!</h1>
				<table class="table" width="800" border="1" cellpadding="0"
					cellspacing="0">
					<tr class="table_header">
						<td width="6%" align="center">ID</td>
						<td width="8%" align="center">套餐编号</td>
						<td width="8%" align="center">套餐类型</td>
						<td width="50%" align="center">套餐详情</td>
						<td width="8%" align="center">套餐价格</td>
						<td width="10%" align="center">操作按钮</td>
					</tr>
					<%
						List<TaocanI> list = (List<TaocanI>) request.getAttribute("taocans");
						for (int i = 0; i < list.size(); i++) {
							TaocanI t = list.get(i);
					%>
					<tr class="row1">
						<td align="center"><%=t.getId()%></td>
						<td align="center"><%=t.getNum()%></td>
						<td align="center"><%=t.getType()%></td>
						<td align="center"><%=t.getXiangqing()%></td>
						<td align="center"><%=t.getPrice()%></td>
						<td align="center"><a href="UpdateTaocanS?num=<%=t.getNum()%>">修改</a>
						       &nbsp;&nbsp;<a href="DeleteTaocanS?num=<%=t.getNum()%>">删除</a></td>
					</tr>
					<%
						}
					%>
				</table>
			    
			</div>
		</div>
		<div id="footer">
			<div id="footer_bg">在线预约@126.com</div>
		</div>
	</div>
</body>
</html>